<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>2022 | Hexo</title><meta name="author" content="Joey"><meta name="copyright" content="Joey"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="2022">
<meta property="og:url" content="https://jonhsean.gitee.io/blog/archives/2022/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png">
<meta property="article:author" content="Joey">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png"><link rel="shortcut icon" href="/blog/img/favicon.png"><link rel="canonical" href="https://jonhsean.gitee.io/blog/archives/2022/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/blog/css/index.css"><link rel="stylesheet" href="https://unpkg.com/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://unpkg.com/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/blog/',
  algolia: undefined,
  localSearch: {"path":"/blog/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: {"defaultEncoding":2,"translateDelay":100,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"简"},
  noticeOutdate: {"limitDay":180,"position":"top","messagePrev":"It has been","messageNext":"days since the last update, the content of the article may be outdated."},
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://unpkg.com/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://unpkg.com/flickr-justified-gallery/dist/fjGallery.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: false,
  isAnchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '2022',
  isPost: false,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2022-10-14 22:02:18'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/blog/archives/"><div class="headline">文章</div><div class="length-num">21</div></a><a href="/blog/tags/"><div class="headline">标签</div><div class="length-num">26</div></a><a href="/blog/categories/"><div class="headline">分类</div><div class="length-num">30</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/blog/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/blog/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/blog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/blog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/blog/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog_name"><a id="site-name" href="/blog/">Hexo</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/blog/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/blog/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/blog/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/blog/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 清单</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/blog/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="archive"><div class="article-sort-title">文章总览 - 21</div><div class="article-sort"><div class="article-sort-item year">2022</div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_%E5%B0%8F%E9%AD%94%E6%9C%AF/" title="小技巧-kotlin基础(六)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="小技巧-kotlin基础(六)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:46:01.000Z" title="发表于 2022-10-14 15:46:01">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_%E5%B0%8F%E9%AD%94%E6%9C%AF/" title="小技巧-kotlin基础(六)">小技巧-kotlin基础(六)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_%E7%A9%BA%E6%8C%87%E9%92%88%E6%A3%80%E6%9F%A5/" title="空指针检查-kotlin基础(五)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="空指针检查-kotlin基础(五)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:43:10.000Z" title="发表于 2022-10-14 15:43:10">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_%E7%A9%BA%E6%8C%87%E9%92%88%E6%A3%80%E6%9F%A5/" title="空指针检查-kotlin基础(五)">空指针检查-kotlin基础(五)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_lambda%E7%BC%96%E7%A8%8B/" title="Lambda编程-kotlin基础(四)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="Lambda编程-kotlin基础(四)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:23:56.000Z" title="发表于 2022-10-14 15:23:56">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_lambda%E7%BC%96%E7%A8%8B/" title="Lambda编程-kotlin基础(四)">Lambda编程-kotlin基础(四)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_classSPEC/" title="面向对象3:数据类和单例类-kotlin基础(三)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="面向对象3:数据类和单例类-kotlin基础(三)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:18:42.000Z" title="发表于 2022-10-14 15:18:42">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_classSPEC/" title="面向对象3:数据类和单例类-kotlin基础(三)">面向对象3:数据类和单例类-kotlin基础(三)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_interface/" title="面向对象2:接口-kotlin基础(三)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="面向对象2:接口-kotlin基础(三)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:14:52.000Z" title="发表于 2022-10-14 15:14:52">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_interface/" title="面向对象2:接口-kotlin基础(三)">面向对象2:接口-kotlin基础(三)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_oop/" title="面向对象1-kotlin基础(三)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="面向对象1-kotlin基础(三)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T07:04:55.000Z" title="发表于 2022-10-14 15:04:55">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_oop/" title="面向对象1-kotlin基础(三)">面向对象1-kotlin基础(三)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_base/" title="变量和函数-kotlin基础(二)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="变量和函数-kotlin基础(二)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T06:38:41.000Z" title="发表于 2022-10-14 14:38:41">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_base/" title="变量和函数-kotlin基础(二)">变量和函数-kotlin基础(二)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/14/daily/kotlin_info/" title="介绍-kotlin基础(一)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="介绍-kotlin基础(一)" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-14T06:28:50.000Z" title="发表于 2022-10-14 14:28:50">2022-10-14</time></div><a class="article-sort-item-title" href="/blog/2022/10/14/daily/kotlin_info/" title="介绍-kotlin基础(一)">介绍-kotlin基础(一)</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/13/daily/kotlin_%E9%9D%99%E6%80%81%E6%96%B9%E6%B3%95/" title="静态方法 - kotlin使用技巧篇"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="静态方法 - kotlin使用技巧篇" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-13T13:03:18.000Z" title="发表于 2022-10-13 21:03:18">2022-10-13</time></div><a class="article-sort-item-title" href="/blog/2022/10/13/daily/kotlin_%E9%9D%99%E6%80%81%E6%96%B9%E6%B3%95/" title="静态方法 - kotlin使用技巧篇">静态方法 - kotlin使用技巧篇</a></div></div><div class="article-sort-item"><a class="article-sort-item-img" href="/blog/2022/10/13/daily/kotlin_%E6%A0%87%E5%87%86%E5%87%BD%E6%95%B0/" title="标准函数 - kotlin使用技巧篇"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" alt="标准函数 - kotlin使用技巧篇" onerror="this.onerror=null;this.src='/blog/img/404.jpg'"></a><div class="article-sort-item-info"><div class="article-sort-item-time"><i class="far fa-calendar-alt"></i><time class="post-meta-date-created" datetime="2022-10-13T06:04:58.000Z" title="发表于 2022-10-13 14:04:58">2022-10-13</time></div><a class="article-sort-item-title" href="/blog/2022/10/13/daily/kotlin_%E6%A0%87%E5%87%86%E5%87%BD%E6%95%B0/" title="标准函数 - kotlin使用技巧篇">标准函数 - kotlin使用技巧篇</a></div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/blog/archives/2022/page/2/">2</a><a class="page-number" href="/blog/archives/2022/page/3/">3</a><a class="extend next" rel="next" href="/blog/archives/2022/page/2/"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/blog/2022/10/14/daily/kotlin_%E5%B0%8F%E9%AD%94%E6%9C%AF/" title="小技巧-kotlin基础(六)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="小技巧-kotlin基础(六)"/></a><div class="content"><a class="title" href="/blog/2022/10/14/daily/kotlin_%E5%B0%8F%E9%AD%94%E6%9C%AF/" title="小技巧-kotlin基础(六)">小技巧-kotlin基础(六)</a><time datetime="2022-10-14T07:46:01.000Z" title="发表于 2022-10-14 15:46:01">2022-10-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2022/10/14/daily/kotlin_%E7%A9%BA%E6%8C%87%E9%92%88%E6%A3%80%E6%9F%A5/" title="空指针检查-kotlin基础(五)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="空指针检查-kotlin基础(五)"/></a><div class="content"><a class="title" href="/blog/2022/10/14/daily/kotlin_%E7%A9%BA%E6%8C%87%E9%92%88%E6%A3%80%E6%9F%A5/" title="空指针检查-kotlin基础(五)">空指针检查-kotlin基础(五)</a><time datetime="2022-10-14T07:43:10.000Z" title="发表于 2022-10-14 15:43:10">2022-10-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2022/10/14/daily/kotlin_lambda%E7%BC%96%E7%A8%8B/" title="Lambda编程-kotlin基础(四)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="Lambda编程-kotlin基础(四)"/></a><div class="content"><a class="title" href="/blog/2022/10/14/daily/kotlin_lambda%E7%BC%96%E7%A8%8B/" title="Lambda编程-kotlin基础(四)">Lambda编程-kotlin基础(四)</a><time datetime="2022-10-14T07:23:56.000Z" title="发表于 2022-10-14 15:23:56">2022-10-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2022/10/14/daily/kotlin_classSPEC/" title="面向对象3:数据类和单例类-kotlin基础(三)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="面向对象3:数据类和单例类-kotlin基础(三)"/></a><div class="content"><a class="title" href="/blog/2022/10/14/daily/kotlin_classSPEC/" title="面向对象3:数据类和单例类-kotlin基础(三)">面向对象3:数据类和单例类-kotlin基础(三)</a><time datetime="2022-10-14T07:18:42.000Z" title="发表于 2022-10-14 15:18:42">2022-10-14</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/blog/2022/10/14/daily/kotlin_interface/" title="面向对象2:接口-kotlin基础(三)"><img src="https://i.loli.net/2020/05/01/gkihqEjXxJ5UZ1C.jpg" onerror="this.onerror=null;this.src='/blog/img/404.jpg'" alt="面向对象2:接口-kotlin基础(三)"/></a><div class="content"><a class="title" href="/blog/2022/10/14/daily/kotlin_interface/" title="面向对象2:接口-kotlin基础(三)">面向对象2:接口-kotlin基础(三)</a><time datetime="2022-10-14T07:14:52.000Z" title="发表于 2022-10-14 15:14:52">2022-10-14</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            <a class="card-more-btn" href="/blog/categories/" title="查看更多">
    <i class="fas fa-angle-right"></i></a>
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/NPM/"><span class="card-category-list-name">NPM</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/css/"><span class="card-category-list-name">css</span><span class="card-category-list-count">1</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/css/%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8/"><span class="card-category-list-name">预处理器</span><span class="card-category-list-count">1</span></a></li></ul></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/hexo/"><span class="card-category-list-name">hexo</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/kotlin/"><span class="card-category-list-name">kotlin</span><span class="card-category-list-count">10</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/kotlin/Lambda/"><span class="card-category-list-name">Lambda</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/kotlin/oop/"><span class="card-category-list-name">oop</span><span class="card-category-list-count">3</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/blog/categories/kotlin/oop/data-singelton-class/"><span class="card-category-list-name">data&singelton class</span><span class="card-category-list-count">1</span></a></li></ul></li></ul></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/blog/tags/Java%E5%87%BD%E6%95%B0%E5%BC%8FAPI/" style="font-size: 1.1em; color: #999">Java函数式API</a> <a href="/blog/tags/cnpm/" style="font-size: 1.1em; color: #999">cnpm</a> <a href="/blog/tags/css/" style="font-size: 1.1em; color: #999">css</a> <a href="/blog/tags/gethostname/" style="font-size: 1.1em; color: #999">gethostname</a> <a href="/blog/tags/hexo/" style="font-size: 1.1em; color: #999">hexo</a> <a href="/blog/tags/kotlin%E5%9F%BA%E7%A1%80/" style="font-size: 1.5em; color: #99a9bf">kotlin基础</a> <a href="/blog/tags/kotlin%E6%8A%80%E5%B7%A7/" style="font-size: 1.23em; color: #999ea6">kotlin技巧</a> <a href="/blog/tags/kotlin%E9%9B%86%E5%90%88/" style="font-size: 1.1em; color: #999">kotlin集合</a> <a href="/blog/tags/less/" style="font-size: 1.1em; color: #999">less</a> <a href="/blog/tags/node/" style="font-size: 1.37em; color: #99a4b2">node</a> <a href="/blog/tags/node-modules/" style="font-size: 1.1em; color: #999">node_modules</a> <a href="/blog/tags/node%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80/" style="font-size: 1.1em; color: #999">node下载地址</a> <a href="/blog/tags/npm/" style="font-size: 1.37em; color: #99a4b2">npm</a> <a href="/blog/tags/nvm/" style="font-size: 1.1em; color: #999">nvm</a> <a href="/blog/tags/sass/" style="font-size: 1.1em; color: #999">sass</a> <a href="/blog/tags/scss/" style="font-size: 1.1em; color: #999">scss</a> <a href="/blog/tags/stylus/" style="font-size: 1.1em; color: #999">stylus</a> <a href="/blog/tags/tabBar/" style="font-size: 1.1em; color: #999">tabBar</a> <a href="/blog/tags/vant-UI/" style="font-size: 1.1em; color: #999">vant UI</a> <a href="/blog/tags/win7/" style="font-size: 1.1em; color: #999">win7</a> <a href="/blog/tags/ws2-32-dll/" style="font-size: 1.1em; color: #999">ws2_32.dll</a> <a href="/blog/tags/wx-%E5%B0%8F%E7%A8%8B%E5%BA%8F/" style="font-size: 1.1em; color: #999">wx-小程序</a> <a href="/blog/tags/yarn/" style="font-size: 1.23em; color: #999ea6">yarn</a> <a href="/blog/tags/%E5%B1%80%E9%83%A8%E4%BD%BF%E7%94%A8/" style="font-size: 1.1em; color: #999">局部使用</a> <a href="/blog/tags/%E7%BC%96%E8%AF%91%E5%9E%8B%E8%AF%AD%E8%A8%80/" style="font-size: 1.1em; color: #999">编译型语言</a> <a href="/blog/tags/%E8%A7%A3%E9%87%8A%E5%9E%8B%E8%AF%AD%E8%A8%80/" style="font-size: 1.1em; color: #999">解释型语言</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2022/10/"><span class="card-archive-list-date">十月 2022</span><span class="card-archive-list-count">14</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2022/09/"><span class="card-archive-list-date">九月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/blog/archives/2022/08/"><span class="card-archive-list-date">八月 2022</span><span class="card-archive-list-count">5</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">21</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2022-08-20T16:00:00.000Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">14.8k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2022-10-14T14:02:17.934Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2022 By Joey</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/blog/js/utils.js"></script><script src="/blog/js/main.js"></script><script src="/blog/js/tw_cn.js"></script><script src="https://unpkg.com/@fancyapps/ui/dist/fancybox.umd.js"></script><script>function panguFn () {
  if (typeof pangu === 'object') pangu.autoSpacingPage()
  else {
    getScript('https://unpkg.com/pangu/dist/browser/pangu.min.js')
      .then(() => {
        pangu.autoSpacingPage()
      })
  }
}

function panguInit () {
  if (false){
    GLOBAL_CONFIG_SITE.isPost && panguFn()
  } else {
    panguFn()
  }
}

document.addEventListener('DOMContentLoaded', panguInit)</script><script src="/blog/js/search/local-search.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"></div><script defer="defer" id="fluttering_ribbon" mobile="true" src="https://unpkg.com/butterfly-extsrc/dist/canvas-fluttering-ribbon.min.js"></script><script src="https://unpkg.com/butterfly-extsrc/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://unpkg.com/butterfly-extsrc/dist/click-heart.min.js" async="async" mobile="true"></script><script src="https://unpkg.com/pjax/pjax.min.js"></script><script>let pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]

var pjax = new Pjax({
  elements: 'a:not([target="_blank"]):not([href="/music/"]):not([href="/no-pjax/"])',
  selectors: pjaxSelectors,
  cacheBust: false,
  analytics: false,
  scrollRestoration: false
})

document.addEventListener('pjax:send', function () {

  // removeEventListener scroll 
  window.tocScrollFn && window.removeEventListener('scroll', window.tocScrollFn)
  window.scrollCollect && window.removeEventListener('scroll', scrollCollect)

  typeof preloader === 'object' && preloader.initLoading()
  document.getElementById('rightside').style.cssText = "opacity: ''; transform: ''"
  
  if (window.aplayers) {
    for (let i = 0; i < window.aplayers.length; i++) {
      if (!window.aplayers[i].options.fixed) {
        window.aplayers[i].destroy()
      }
    }
  }

  typeof typed === 'object' && typed.destroy()

  //reset readmode
  const $bodyClassList = document.body.classList
  $bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')

  typeof disqusjs === 'object' && disqusjs.destroy()
})

document.addEventListener('pjax:complete', function () {
  window.refreshFn()

  document.querySelectorAll('script[data-pjax]').forEach(item => {
    const newScript = document.createElement('script')
    const content = item.text || item.textContent || item.innerHTML || ""
    Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
    newScript.appendChild(document.createTextNode(content))
    item.parentNode.replaceChild(newScript, item)
  })

  GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()

  typeof chatBtnFn === 'function' && chatBtnFn()
  typeof panguInit === 'function' && panguInit()

  // google analytics
  typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});

  // baidu analytics
  typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);

  typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()

  // prismjs
  typeof Prism === 'object' && Prism.highlightAll()

  typeof preloader === 'object' && preloader.endLoading()
})

document.addEventListener('pjax:error', (e) => {
  if (e.request.status === 404) {
    pjax.loadUrl('/404.html')
  }
})</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>